//
//  QDFocusModel.m
//  QuickDoctor
//
//  Created by ycw on 2016/12/22.
//  Copyright © 2016年 Eric. All rights reserved.
//

#import "QDFocusModel.h"
#import "NetworkData.h"

@implementation QDFocusModel

- (NSString *)description
{
    
    return [self yy_modelDescription];
    
}

- (void)addDoctorListWithCompleteBlock :(void(^)(NSArray<QDFocusModel *> *modelList))completeBlock
{

    NSMutableArray *modelArray = [NSMutableArray array];
    [[NetworkData sharedNetworkData] getAddDoctorsListWithCompleteBlock:^(id responseObject, NSError *error) {
        

        //NSLog(@"%@",responseObject);

//        NSLog(@"%@",responseObject);

        
        NSArray<NSDictionary *> *array = responseObject[@"data"];
        
//        NSArray *modelArr = [NSArray yy_modelArrayWithClass:[QDFocusModel class] json:array];
        for (NSDictionary *dict in array)
        {
            QDFocusModel *model = [QDFocusModel yy_modelWithDictionary:dict];
            [modelArray addObject:model];
        }
        
        if (completeBlock) {
            completeBlock(modelArray.copy);
        }
        
    }];
    
}




@end
